import sys
with open(r'E:\mcu\projects\lcd\conv.txt','rb') as f:
    s = f.read().decode('utf-8')
print(s)
s = s.strip()
s = s.strip('{')
s = s.strip(';')
s = s.strip('}')
l = s.split(',')
print(s)
l = [s.strip() for s in l]
print(l)
output = ''
j=0
for i,s in enumerate(l):
    if i%33==0:
        j=0
        if i==0:
            output +='{//%s,\n'%s
        else:
            output += '},{//%s,\n'%s
    else:
        j+=1
        output += s+','
        if j%8==0:
            output+='\n'
output+='}'
print(output)